package org.dromara.xhlj.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import org.dromara.starter.jpacomment.annotation.SailColumn;
import org.dromara.starter.jpacomment.annotation.SailIndex;
import org.dromara.starter.jpacomment.annotation.SailTable;
import org.dromara.starter.jpacomment.enums.IndexType;
/**
 * 大会会场对象 xhlj_venues
 *
 * @author yf
 * @date 2024-07-28
 */

@Data
@TableName("xhlj_venues")
@Entity
@Table(name = "xhlj_venues")
@SailTable(comment = "大会会场表", indexs = {
    @SailIndex(name = "idx_venues_type", type = IndexType.BTREE,
       columns = {"venues_type"}
    ),    @SailIndex(name = "idx_venues_capacity", type = IndexType.BTREE,
       columns = {"venues_capacity"}
    ),    @SailIndex(name = "uniq_venues_name", type = IndexType.BTREE,
       columns = {"venues_name"}
    )}
)
public class XhljVenues implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;
    public static final String TRANS_ID_TO_VO = "xhlj_venues_vo";
    public static final String TRANS_ID_TO_VO_LIST = "xhlj_venues_list";
    /**
     * 会场ID
     */
    @TableId(value = "venues_id", type = IdType.AUTO)
    @Id
    private Integer venuesId;
    /**
     * 会场名称
     */
    @Column(name = "venues_name")
    @SailColumn(comment = "会场名称",type = "varchar(100)", defaultValue = "NULL")
    private String venuesName;
    /**
     * 创建人sys_user（大会管理员/活动负责人）
     */
    @SailColumn(comment = "创建人sys_user（大会管理员/活动负责人）",type = "int", defaultValue = "NULL")
    @Column(name = "create_by")
    private Integer createBy;
    /**
     * 会场地址
     */
    @Column(name = "venues_location")
    @SailColumn(comment = "会场地址",type = "varchar(255)", defaultValue = "NULL")
    private String venuesLocation;
    /**
     * 会场联系人
     */
    @Column(name = "venues_contact")
    @SailColumn(comment = "会场联系人",type = "varchar(50)", defaultValue = "NULL")
    private String venuesContact;
    /**
     * 会场联系电话
     */
    @Column(name = "venues_phone")
    @SailColumn(comment = "会场联系电话",type = "varchar(20)", defaultValue = "NULL")
    private String venuesPhone;
    /**
     * 会场最大容量
     */
    @Column(name = "venues_capacity")
    @SailColumn(comment = "会场最大容量",type = "int", defaultValue = "NULL")
    private Integer venuesCapacity;
    /**
     * 会场图片
     */
    @Column(name = "venues_image")
    @SailColumn(comment = "会场图片",type = "text", defaultValue = "NULL")
    private String venuesImage;
    /**
     * 会场视频
     */
    @Column(name = "venues_file")
    @SailColumn(comment = "会场视频",type = "text", defaultValue = "NULL")
    private String venuesFile;
    /**
     * 会场地图
     */
    @Column(name = "venues_map")
    @SailColumn(comment = "会场地图",type = "varchar(500)", defaultValue = "NULL")
    private String venuesMap;
    /**
     * 会场类型（0=会议室，1=展览厅，2=宴会厅，3=展商）
     */
    @Column(name = "venues_type")
    @SailColumn(comment = "会场类型（0=会议室，1=展览厅，2=宴会厅，3=展商）",type = "char(3)", defaultValue = "NULL")
    private String venuesType;
    /**
     * 会场状态（0=未占用，1=已占用）
     */
    @Column(name = "venues_status")
    @SailColumn(comment = "会场状态（0=未占用，1=已占用）",type = "char(3)", defaultValue = "NULL")
    private String venuesStatus;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @Column(name = "create_time")
    @SailColumn(comment = "创建时间",type = "timestamp", defaultValue = "CURRENT_TIMESTAMP")
    private Date createTime;
    /**
     * 删除标志
     */
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    @Column(name = "del_flag")
    @SailColumn(comment = "删除标志",type = "char(1)", defaultValue = "0")
    private String delFlag;
}
